bmp2agb

## bmp2agb [Tool Command]

Converts bitmap into text or binary for output.

### Syntax

    bmp2agb [-bi/-bm|c/-f/-h/-d 8|16/-r/-l search/-h 4|8/-np/-o offset] input-file.bmp

### Description

Converts bitmap into text or binary for output.

The command arguments are described below:

input-file
  The input bitmap file. Supports 4bit, 8bit, and 24bit.

-bi
  Output as a binary file.

-bm
  Output in bitmap format. Invalid for 4bit images. Selected by default for 24bit images.

-c
  Output in character format. Selected by default for 4bit and 8bit images. Invalid for 24bit images.

-f
  Flip horizontally (mirror) and output.

-h
  Attach 4Byte header to unconverted data so it can be recognized.

-d bitSize (8|16)
  Output difference-converted data. For expansion, use Diff8BitUnFilterWram(), Diff8BitUnFilterVram(), or Diff16BitUnFilter().

-r
  Output using run-length compression. For expansion, use RLUnCompVram() or RLUnCompWram().

-l search (>0)
  Output using LZ77 compression. For expansion, use LZ77UnCompVram() or LZ77UnCompWram(). For data to be expanded with LZ77UnCompVram(), specify 2 or greater for "search."

-h bitSize (4|8)
  Output using Huffman compression. For expansion, use HuffUnComp().

-np
  Do not output palettes.

-o offset
  Shift the image by the "offset" value only.

### Example

In this example, the converted data is output in the following order: original data with attached header -> LZ77 compression -> Huffman compression

bmp2agb -h -l 2 -h 4 input-file.bmp

AGB-06-0030-001A (2/26/01)
© 2001 Nintendo of America Inc.